package com.googlecode.flealancemarket.service.commands.impl;

import com.googlecode.flealancemarket.metamodel.User;
import com.googlecode.flealancemarket.service.commands.SaveUser;
import com.googlecode.flealancemarket.service.facades.UserFacade;
import javax.swing.JOptionPane;

public class SaveUserImpl implements SaveUser {

    UserFacade facade;
    User user;

    public Object execute() {
        return facade.saveUser(user);
    }

    public UserFacade getFacade(){
        return facade;
    }

    public void setFacade(UserFacade uf){
        facade = uf;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public User getUser() {
        return user;
    }
}
